let show_loading_time = 1000 // 显示loading框时间
let base_url = "https://file.anyfit.com/oss/"

let en_title = "Catalogue"
let type_video_en_title = "Video"
let type_pdf_en_title = "Brochure"
let type_device_en_title = "Intelligent Device"
let copy_success_en = "Copy Success"
let en_language = "Language"
let en_loading_title = 'Ready to download'

let cn_title = "目录册"
let type_video_cn_title = "视频"
let type_pdf_cn_title = "产品手册"
let type_device_cn_title = "智能设备"
let copy_success_cn = "复制成功"
let cn_language = "切换语言"
let cn_loading_title = '准备下载中...'


function category_device_data_cn() {
	return [
		{
			"device_img":"./img/device/anyfit_device_a_cn.png",
			"device_cover_img":"./img/device/anyfit_device_a_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_b_cn.png",
			"device_cover_img":"./img/device/anyfit_device_b_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_c_cn.png",
			"device_cover_img":"./img/device/anyfit_device_c_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_d_cn.png",
			"device_cover_img":"./img/device/anyfit_device_d_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_e_cn.png",
			"device_cover_img":"./img/device/anyfit_device_e_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_f_cn.png",
			"device_cover_img":"./img/device/anyfit_device_f_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_g_cn.png",
			"device_cover_img":"./img/device/anyfit_device_g_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_h_cn.png",
			"device_cover_img":"./img/device/anyfit_device_h_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_i_cn.png",
			"device_cover_img":"./img/device/anyfit_device_i_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_j_cn.png",
			"device_cover_img":"./img/device/anyfit_device_j_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_k_cn.png",
			"device_cover_img":"./img/device/anyfit_device_k_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_l_cn.png",
			"device_cover_img":"./img/device/anyfit_device_l_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_m_cn.png",
			"device_cover_img":"./img/device/anyfit_device_m_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_n_cn.png",
			"device_cover_img":"./img/device/anyfit_device_n_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_o_cn.png",
			"device_cover_img":"./img/device/anyfit_device_o_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_p_cn.png",
			"device_cover_img":"./img/device/anyfit_device_p_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_q_cn.png",
			"device_cover_img":"./img/device/anyfit_device_q_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_r_cn.png",
			"device_cover_img":"./img/device/anyfit_device_r_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_s_cn.png",
			"device_cover_img":"./img/device/anyfit_device_s_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_t_cn.png",
			"device_cover_img":"./img/device/anyfit_device_t_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_u_cn.png",
			"device_cover_img":"./img/device/anyfit_device_u_cover_cn.png",
		},
		{
			"device_img":"./img/device/anyfit_device_v_cn.png",
			"device_cover_img":"./img/device/anyfit_device_v_cover_cn.png",
		}
	]
}
function category_device_data_en() {
	return [
		{
			"device_img":"./img/device/anyfit_device_a_en.png",
			"device_cover_img":"./img/device/anyfit_device_a_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_b_en.png",
			"device_cover_img":"./img/device/anyfit_device_b_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_c_en.png",
			"device_cover_img":"./img/device/anyfit_device_c_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_d_en.png",
			"device_cover_img":"./img/device/anyfit_device_d_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_e_en.png",
			"device_cover_img":"./img/device/anyfit_device_e_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_f_en.png",
			"device_cover_img":"./img/device/anyfit_device_f_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_g_en.png",
			"device_cover_img":"./img/device/anyfit_device_g_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_h_en.png",
			"device_cover_img":"./img/device/anyfit_device_h_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_i_en.png",
			"device_cover_img":"./img/device/anyfit_device_i_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_j_en.png",
			"device_cover_img":"./img/device/anyfit_device_j_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_k_en.png",
			"device_cover_img":"./img/device/anyfit_device_k_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_l_en.png",
			"device_cover_img":"./img/device/anyfit_device_l_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_m_en.png",
			"device_cover_img":"./img/device/anyfit_device_m_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_n_en.png",
			"device_cover_img":"./img/device/anyfit_device_n_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_o_en.png",
			"device_cover_img":"./img/device/anyfit_device_o_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_p_en.png",
			"device_cover_img":"./img/device/anyfit_device_p_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_q_en.png",
			"device_cover_img":"./img/device/anyfit_device_q_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_r_en.png",
			"device_cover_img":"./img/device/anyfit_device_r_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_s_en.png",
			"device_cover_img":"./img/device/anyfit_device_s_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_t_en.png",
			"device_cover_img":"./img/device/anyfit_device_t_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_u_en.png",
			"device_cover_img":"./img/device/anyfit_device_u_cover_en.png",
		},
		{
			"device_img":"./img/device/anyfit_device_v_en.png",
			"device_cover_img":"./img/device/anyfit_device_v_cover_en.png",
		}
	]
}
/**
 * 中文pdf目录册数据
 * @returns 数据
 */
function category_pdf_data_cn() {
	return [{
		'title': 'AnyFit Gym',
		'img_top': './img/pdf/anyfit_pdf_a_cover.png',
		'img_bottom': './img/pdf/anyfit_pdf_bottom_a_title_cn.png',
		'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_a_title_en.png',
		'url': 'OtMhUAZ5cFyEnPOpu4CNXgiwxXZYHsZt.pdf'
	},
		{
			'title': 'AnyFit 产品目录册',
			'img_top': './img/pdf/anyfit_pdf_b_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_b_title_cn.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_b_title_cn.png',
			'url': 'iYNTVP082yz3h0LdA9Mj5gVFqZvpkf0N.pdf'
		},
		{
			'title': 'AnyFit Studio',
			'img_top': './img/pdf/anyfit_pdf_c_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_c_title_cn.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_c_title_en.png',
			'url': 'JG7j5fRogVJHbCoXraoh5loJjcVQjRa0.pdf'
		},
		{
			'title': 'AnyFit 新产品目录册',
			'img_top': './img/pdf/anyfit_pdf_d_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_d_title_cn.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_d_title_cn.png',
			'url': 'hnR3qQOmeTEoQUQl2ThwCnR3rV9J676Z.pdf'
		},
		{
			'title': '一站式产品矩阵手册',
			'img_top': './img/pdf/anyfit_pdf_e_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_e_title_cn.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_e_title_cn.png',
			'url': 'eHDTpdHE3566ZwszmVnXtlaEAPbhHt09.pdf'
		},
		{
			'title': 'AnyFit楼梯机目录册',
			'img_top': './img/pdf/anyfit_pdf_f_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_f_title_en.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_f_title_cn.png',
			'url': 'lighshSlYD7sPDtl0x6H2Q3u0adqi27g.pdf'
		}
	]
}

/**
 * 英文pdf目录册数据
 * @returns 数据
 */
function category_pdf_data_en() {
	return [{
		'title': 'AnyFit Gym',
		'img_top': './img/pdf/anyfit_pdf_a_cover.png',
		'img_bottom': './img/pdf/anyfit_pdf_bottom_a_title_en.png',
		'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_a_title_en.png',
		'url': 'bkXC5je2g5qJgUDjscuGOQAgnWshQdn8.pdf'
	},
		{
			'title': 'AnyFit Product Catalogue',
			'img_top': './img/pdf/anyfit_pdf_b_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_b_title_en.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_b_title_en.png',
			'url': 'pu6NyejJzuzejEdUM3F353OPx5yn7eHA.pdf'
		},
		{
			'title': 'AnyFit Studio',
			'img_top': './img/pdf/anyfit_pdf_c_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_c_title_en.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_c_title_en.png',
			'url': 'Ji7tV4lmDUux6FTiGlxtBp70eB8CC5kh.pdf'
		},
		{
			'title': 'AnyFit New Products Catalogue',
			'img_top': './img/pdf/anyfit_pdf_d_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_d_title_en.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_d_title_en.png',
			'url': 'xz2id5xhFjpVeddiFhhmOQAhrgMYlE37.pdf'
		},
		{
			'title': 'One-Stop Intelligent Product Matrix',
			'img_top': './img/pdf/anyfit_pdf_e_cover.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_e_title_en.png',

			'img_bottom': './img/pdf/anyfit_pdf_bottom_e_title_en.png',
			'url': '4HcIOMhTuzhtpt1oNEJxlXATzZ5gTzZ7.pdf'
		},
		{
			'title': 'AnyFit Stairtrainer Catalogue',
			'img_top': './img/pdf/anyfit_pdf_f_cover.png',
			'img_bottom': './img/pdf/anyfit_pdf_bottom_f_title_en.png',
			'img_pc_bottom': './img/pdf/anyfit_pdf_pc_bottom_f_title_en.png',
			'url': 'QiMROiRiJzxPogZ33UhxEseB9J8dyY36.pdf'
		}
	]
}


/**
 * 中文视频目录册数据
 * @returns 数据
 */
function category_video_data_cn() {
	return [{
		'title': 'AnyFit 智能健身房',
		'img_top': './img/video/anyfit_a_top_en.png',
		'img_bottom': './img/video/anyfit_a_bottom_cn.png',
		'img_pc_bottom': './img/video/anyfit_pc_a_bottom_cn.png',
		'top_top_img': './img/video/anyfit_mobile_top_top.png',
		'top_bottom_img': './img/video/anyfit_mobile_top_bottom_cn.png',
		'url': 'exNcvJYwwRAec8TTFsakWyM72DWGoKqK.mp4'
	},
		{
			'title': 'AnyFit 健身房',
			'img_top': './img/video/anyfit_b_top_en.png',
			'img_bottom': './img/video/anyfit_b_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_b_bottom_cn.png',
			'url': 'LEP1nIjgbX5kgc3s2wqpBA19tMk9w5DO.mp4'
		},
		{
			'title': 'AnyFit Mini Gym 您的家庭 /办公室健身解决方案',
			'img_top': './img/video/anyfit_c_top_en.png',
			'img_bottom': './img/video/anyfit_c_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_c_bottom_cn.png',
			'url': 'cz7FPZjs0dsw3s4G0y9RKZAKOGQX9DD6.mp4'
		},
		{
			'title': 'AnyFit Studio 定制柜组合方案',
			'img_top': './img/video/anyfit_d_top_en.png',
			'img_bottom': './img/video/anyfit_d_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_d_bottom_cn.png',
			'url': 'U3kmF7j7rLi4eRpkhc4u7VaRGE49l0y0.mp4'
		},
		{
			'title': 'AnyFit FIBO 2024',
			'img_top': './img/video/anyfit_g_top_en.png',
			'img_bottom': './img/video/anyfit_g_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_g_bottom_en.png',
			'url': 'jKEP1pS1dUMXircvL0jVyOfFr2DWEhho.mp4'
		},
		{
			'title': 'AnyFit FIBO 2023',
			'img_top': './img/video/anyfit_f_top_en.png',
			'img_bottom': './img/video/anyfit_f_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_f_bottom_en.png',
			'url': 'P1nF6hYQa8V9LdFwplmCO5Mv5CLOCury.mp4'
		},
		{
			'title': 'AnyFit FIBO 2022',
			'img_top': './img/video/anyfit_e_top_en.png',
			'img_bottom': './img/video/anyfit_e_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_e_bottom_en.png',
			'url': 'QwVTwL74MCC3cIOMk7mltblZLFShzQk1.mp4'
		},
		{
			'title': 'AnyFit China Sport Show 2024',
			'img_top': './img/video/anyfit_i_top_en.png',
			'img_bottom': './img/video/anyfit_i_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_i_bottom_en.png',
			'url': '3oF1SdiFjmKu5H0uNpsTYYQ7RMcvMdA0.mp4'
		},
		{
			'title': 'AnyFit China Sport Show 2023',
			'img_top': './img/video/anyfit_h_top_en.png',
			'img_bottom': './img/video/anyfit_h_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_h_bottom_en.png',
			'url': 'YwwRBiwxY5gZZQ4AA3g5nvhIzxNfHzCd.mp4'
		}

	]
}

/**
 * 英文视频目录册数据
 * @returns 数据
 */
function category_video_data_en() {
	return [{
		'title': 'AnyFit Das Intelligente Gym',
		'img_top': './img/video/anyfit_a_top_en.png',
		'img_bottom': './img/video/anyfit_a_bottom_en.png',
		'top_top_img': './img/video/anyfit_mobile_top_top.png',
		'top_bottom_img': './img/video/anyfit_mobile_top_bottom_en.png',
		'img_pc_bottom': './img/video/anyfit_pc_a_bottom_en.png',
		'url': 'gXNYjvsyguwZdUN5MxcdkR0YinOOqzn1.mp4'
	},
		{
			'title': 'AnyFit Gym',
			'img_top': './img/video/anyfit_b_top_en.png',
			'img_bottom': './img/video/anyfit_b_bottom_en.png',
			'img_pc_bottom': './img/video/anyfit_pc_b_bottom_en.png',
			'url': '1pT4rRSAc3pOHQ1jpU0VXTpeN5PK8al6.mp4'
		},
		{
			'title': 'AnyFit Mini Gym your home /office fitness solution',
			'img_top': './img/video/anyfit_c_top_en.png',
			'img_bottom': './img/video/anyfit_c_bottom_en.png',
			'img_pc_bottom': './img/video/anyfit_pc_c_bottom_en.png',
			'url': 'owgB4jgc4u7We0TTBd4vaaadm3Xtk7or.mp4'
		},
		{
			'title': 'AnyFit Studio Custom Solution',
			'img_top': './img/video/anyfit_d_top_en.png',
			'img_bottom': './img/video/anyfit_d_bottom_en.png',
			'img_pc_bottom': './img/video/anyfit_pc_d_bottom_en.png',
			'url': 'XbSHHfYXIwkVrj5gWLOCtpqKkf5sU3ia.mp4'
		},


		{
			'title': 'AnyFit FIBO 2024',
			'img_top': './img/video/anyfit_g_top_en.png',
			'img_bottom': './img/video/anyfit_g_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_g_bottom_en.png',
			'url': 'jKEP1pS1dUMXircvL0jVyOfFr2DWEhho.mp4'
		},
		{
			'title': 'AnyFit FIBO 2023',
			'img_top': './img/video/anyfit_f_top_en.png',
			'img_pc_bottom': './img/video/anyfit_pc_f_bottom_en.png',
			'img_bottom': './img/video/anyfit_f_bottom_cn.png',
			'url': 'P1nF6hYQa8V9LdFwplmCO5Mv5CLOCury.mp4'
		},
		{
			'title': 'AnyFit FIBO 2022',
			'img_top': './img/video/anyfit_e_top_en.png',
			'img_bottom': './img/video/anyfit_e_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_e_bottom_en.png',
			'url': 'QwVTwL74MCC3cIOMk7mltblZLFShzQk1.mp4'
		},
		{
			'title': 'AnyFit China Sport Show 2024',
			'img_top': './img/video/anyfit_i_top_en.png',
			'img_bottom': './img/video/anyfit_i_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_i_bottom_en.png',
			'url': '3oF1SdiFjmKu5H0uNpsTYYQ7RMcvMdA0.mp4'
		},
		{
			'title': 'AnyFit China Sport Show 2023',
			'img_top': './img/video/anyfit_h_top_en.png',
			'img_bottom': './img/video/anyfit_h_bottom_cn.png',
			'img_pc_bottom': './img/video/anyfit_pc_h_bottom_en.png',
			'url': 'YwwRBiwxY5gZZQ4AA3g5nvhIzxNfHzCd.mp4'
		}

	]
}
/**
 * 判断是不是PC端
 * @returns PC端:true   手机端:false
 */
function isPC() {
	var userAgentInfo = navigator.userAgent;	
	var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod","Wechat"];
	var flag = true;
	for (var v = 0; v < Agents.length; v++) {
		if (userAgentInfo.indexOf(Agents[v]) > 0) {
			flag = false;
			break;
		}
	}
	if (flag == true) {
		// 获取 User Agent
		var userAgent = navigator.userAgent.toLowerCase();
		// 判断是否在微信中打开
		if (userAgent.indexOf('micromessenger') !== -1) {
			flag = false;
		}
	}
	return flag;
}